/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28779
 * Date: 2023-04-19
 * Time: 20:34
 */
public class Test {
    public static void main(String[] args) {
        MyQueue myQueue = new MyQueue();
        myQueue.offer(12);
        myQueue.offer(23);
        myQueue.offer(34);
        myQueue.offer(45);
        myQueue.offer(55);
        System.out.println("队列长度为：" + myQueue.getUsedSizeSize());
        System.out.println("队列是否为空：" + myQueue.isEmpty());
        System.out.println("获取队头元素：" + myQueue.peek());
        System.out.println("出队列：" + myQueue.poll());
        System.out.println("出队列：" + myQueue.poll());
        System.out.println("出队列：" + myQueue.poll());
    }
}
